home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ntp / depredated / ntp.3.4 / patches / patch3.Z / patch3
Encoding:
Text File  |  1991-09-29  |  12.8 KB  |  464 lines

  1.  
  2. System: ntp version 3.4
  3. Patch #: 3
  4. Priority: 
  5. Subject: Use new RCS headers.
  6. From:
  7.  
  8. Description:
  9.     Use new RCS headers.
  10.  
  11.  
  12. Repeat-By:
  13.  
  14. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your ntp source
  15.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  16.     If you don't have the patch program, apply the following by hand,
  17.     or get patch (version 2.0, latest patchlevel).
  18.  
  19.     After patching:
  20.         make depend
  21.         make
  22.         make install
  23.  
  24.     If patch indicates that patchlevel is the wrong version, you may need
  25.     to apply one or more previous patches, or the patch may already
  26.     have been applied.  See the patchlevel.h file to find out what has or
  27.     has not been applied.  In any event, don't continue with the patch.
  28.  
  29.     If you are missing previous patches they can be obtained from me:
  30.  
  31.     Louis A. Mamakos
  32.     louie@trantor.umd.edu
  33.  
  34.     You can also get the patches via anonymous FTP from
  35.     trantor.umd.edu.
  36.  
  37. Index: patchlevel.h
  38. Prereq: 2
  39. 1c1
  40. < #define PATCHLEVEL 2
  41. ---
  42. > #define PATCHLEVEL 3
  43.  
  44. Index: Makefile
  45. Prereq: 3.4.1.1
  46. *** Makefile.old    Wed Mar 22 18:35:15 1989
  47. --- Makefile    Wed Mar 22 18:35:16 1989
  48. ***************
  49. *** 1,6 ****
  50. ! # $Header: /usr/users/louie/ntp/RCS/Makefile,v 3.4.1.1 89/03/20 00:01:24 louie Exp $
  51.   #
  52.   # $Log:    Makefile,v $
  53.   # Revision 3.4.1.1  89/03/20  00:01:24  louie
  54.   # patch1: Add LIBS macro to Makefile directives which link ntp, ntpdc, ntpd and
  55.   # patch1: test programs.
  56. --- 1,9 ----
  57. ! # $Source: /usr/users/louie/ntp/RCS/Makefile,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:25:14 $
  58.   #
  59.   # $Log:    Makefile,v $
  60. + # Revision 3.4.1.2  89/03/22  18:25:14  louie
  61. + # patch3: Use new and improved RCS headers.
  62. + # 
  63.   # Revision 3.4.1.1  89/03/20  00:01:24  louie
  64.   # patch1: Add LIBS macro to Makefile directives which link ntp, ntpdc, ntpd and
  65.   # patch1: test programs.
  66.  
  67. Index: README
  68. *** README.old    Wed Mar 22 18:35:20 1989
  69. --- README    Wed Mar 22 18:35:21 1989
  70. ***************
  71. *** 1,4 ****
  72. ! README for UNIX NTP release $Date: 89/03/17 18:36:48 $ $Revision: 3.4 $
  73.   
  74.   
  75.   
  76. --- 1,4 ----
  77. ! README for UNIX NTP release $Date: 89/03/22 18:25:34 $ $Revision: 3.4.1.1 $
  78.   
  79.   
  80.   
  81. ***************
  82. *** 48,54 ****
  83.       7) Fire up ntpd in /etc/rc.local
  84.   
  85.   History:
  86. ! 2/17/89
  87.       Another sort-of-working ntpd.  There might still be something weird
  88.       with the logical clock code; seems to be a little weird.  Would
  89.       really like your comments on this version.
  90. --- 48,68 ----
  91.       7) Fire up ntpd in /etc/rc.local
  92.   
  93.   History:
  94. ! 3/22/89
  95. !     A bunch of minor fixes here an there.  The RCS header is being
  96. !     updated so that patches that are generated will apply; apparently
  97. !     the new version of RCS puts the Locked: status in the $Header: /usr/users/louie/ntp/RCS/README,v 3.4.1.1 89/03/22 18:25:34 louie Exp Locker: louie $.
  98. !     Minor fiddles to ntpd/ntpdc to eliminate some byte-sex dependencies.
  99. !     Changs to ntp_proto.c to fix an mis-interpretation in the packet
  100. !     procedure.
  101. !     The ntp program now uses connected UDP sockets to pick up ICMP
  102. !     generated errors.
  103. !     ntpdc will now select a value of tickadj if you don't specify one.
  104. ! 3/17/89
  105.       Another sort-of-working ntpd.  There might still be something weird
  106.       with the logical clock code; seems to be a little weird.  Would
  107.       really like your comments on this version.
  108.  
  109. Index: extract.pl
  110. Prereq: 3.4
  111. *** extract.pl.old    Wed Mar 22 18:35:24 1989
  112. --- extract.pl    Wed Mar 22 18:35:25 1989
  113. ***************
  114. *** 1,6 ****
  115.   #!/usr/bin/perl
  116.   #
  117. ! # $Header: /usr/users/louie/ntp/RCS/extract.pl,v 3.4 89/03/17 18:36:52 louie Exp $
  118.   #
  119.   $HOST = '10.2.0.96';
  120.   if ($#ARGV != 0) {
  121. --- 1,6 ----
  122.   #!/usr/bin/perl
  123.   #
  124. ! # $Source: /usr/users/louie/ntp/RCS/extract.pl,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:36 $
  125.   #
  126.   $HOST = '10.2.0.96';
  127.   if ($#ARGV != 0) {
  128.  
  129. Index: ntp.c
  130. Prereq: 3.4.1.2
  131. *** ntp.c.old    Wed Mar 22 18:35:28 1989
  132. --- ntp.c    Wed Mar 22 18:35:29 1989
  133. ***************
  134. *** 1,9 ****
  135.   #ifndef    lint
  136. ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntp.c,v 3.4.1.2 89/03/22 17:51:13 louie Exp $";
  137.   #endif    lint
  138.   
  139.   /*
  140.    *  $Log:    ntp.c,v $
  141.    * Revision 3.4.1.2  89/03/22  17:51:13  louie
  142.    * Use a connect UDP socket so we can pick up ICMP error messages.
  143.    * 
  144. --- 1,12 ----
  145.   #ifndef    lint
  146. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:22 $";
  147.   #endif    lint
  148.   
  149.   /*
  150.    *  $Log:    ntp.c,v $
  151. +  * Revision 3.4.1.3  89/03/22  18:29:22  louie
  152. +  * patch3: Use new RCS headers.
  153. +  * 
  154.    * Revision 3.4.1.2  89/03/22  17:51:13  louie
  155.    * Use a connect UDP socket so we can pick up ICMP error messages.
  156.    * 
  157.  
  158. Index: ntp.conf
  159. Prereq: 3.4
  160. *** ntp.conf.old    Wed Mar 22 18:35:32 1989
  161. --- ntp.conf    Wed Mar 22 18:35:32 1989
  162. ***************
  163. *** 1,4 ****
  164. ! #    $Header: /usr/users/louie/ntp/RCS/ntp.conf,v 3.4 89/03/17 18:36:57 louie Exp $
  165.   #
  166.   #         Local clock parameters
  167.   #
  168. --- 1,4 ----
  169. ! # $Source: /usr/users/louie/ntp/RCS/ntp.conf,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:33:02 $
  170.   #
  171.   #         Local clock parameters
  172.   #
  173.  
  174. Index: ntp.h
  175. Prereq: 3.4.1.1
  176. *** ntp.h.old    Wed Mar 22 18:35:35 1989
  177. --- ntp.h    Wed Mar 22 18:35:36 1989
  178. ***************
  179. *** 1,7 ****
  180. ! /* $Header: /usr/users/louie/ntp/RCS/ntp.h,v 3.4.1.1 89/03/20 00:02:53 louie Exp $ */
  181.   
  182.   /*
  183.    *  $Log:    ntp.h,v $
  184.    * Revision 3.4.1.1  89/03/20  00:02:53  louie
  185.    * 1
  186.    * 
  187. --- 1,10 ----
  188. ! /* $Source: /usr/users/louie/ntp/RCS/ntp.h,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:28:18 $ */
  189.   
  190.   /*
  191.    *  $Log:    ntp.h,v $
  192. +  * Revision 3.4.1.2  89/03/22  18:28:18  louie
  193. +  * patch3: Use new RCS headers.
  194. +  * 
  195.    * Revision 3.4.1.1  89/03/20  00:02:53  louie
  196.    * 1
  197.    * 
  198.  
  199. Index: ntp_adjust.c
  200. Prereq: 3.4.1.1
  201. *** ntp_adjust.c.old    Wed Mar 22 18:35:40 1989
  202. --- ntp_adjust.c    Wed Mar 22 18:35:41 1989
  203. ***************
  204. *** 1,5 ****
  205.   #ifndef lint
  206. ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntp_adjust.c,v 3.4.1.1 89/03/20 00:09:06 louie Exp $";
  207.   #endif
  208.   
  209.   /*
  210. --- 1,5 ----
  211.   #ifndef lint
  212. ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntp_adjust.c,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:30:52 $";
  213.   #endif
  214.   
  215.   /*
  216. ***************
  217. *** 7,12 ****
  218. --- 7,15 ----
  219.    * 5. of the NTP specification.
  220.    *
  221.    * $Log:    ntp_adjust.c,v $
  222. +  * Revision 3.4.1.2  89/03/22  18:30:52  louie
  223. +  * patch3: Use new RCS headers.
  224. +  * 
  225.    * Revision 3.4.1.1  89/03/20  00:09:06  louie
  226.    * patch1: Don't zero the drift compensation or compliance values when a step
  227.    * patch1: adjustment of the clock occurs.  Use symbolic definition of
  228.  
  229. Index: ntp_proto.c
  230. Prereq: 3.4.1.2
  231. *** ntp_proto.c.old    Wed Mar 22 18:35:46 1989
  232. --- ntp_proto.c    Wed Mar 22 18:35:47 1989
  233. ***************
  234. *** 1,5 ****
  235.   #ifndef    lint
  236. ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntp_proto.c,v 3.4.1.2 89/03/22 18:02:22 louie Exp $";
  237.   #endif
  238.   
  239.   /*
  240. --- 1,5 ----
  241.   #ifndef    lint
  242. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:32:31 $";
  243.   #endif
  244.   
  245.   /*
  246. ***************
  247. *** 10,15 ****
  248. --- 10,18 ----
  249.    *
  250.    *
  251.    * $Log:    ntp_proto.c,v $
  252. +  * Revision 3.4.1.3  89/03/22  18:32:31  louie
  253. +  * patch3: Use new RCS headers.
  254. +  * 
  255.    * Revision 3.4.1.2  89/03/22  18:02:22  louie
  256.    * Add some fiddles for BROADCAST NTP mode.  In the receive procedure, set the
  257.    * reachability shift register of peers that are configured, even if we won't
  258.  
  259. Index: ntp_sock.c
  260. Prereq: 3.4
  261. *** ntp_sock.c.old    Wed Mar 22 18:35:51 1989
  262. --- ntp_sock.c    Wed Mar 22 18:35:52 1989
  263. ***************
  264. *** 1,9 ****
  265.   #ifndef    lint
  266. ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntp_sock.c,v 3.4 89/03/17 18:37:09 louie Exp $";
  267.   #endif
  268.   
  269.   /*
  270.    * $Log:    ntp_sock.c,v $
  271.    * Revision 3.4  89/03/17  18:37:09  louie
  272.    * Latest test release.
  273.    * 
  274. --- 1,12 ----
  275.   #ifndef    lint
  276. ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntp_sock.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:31:20 $";
  277.   #endif
  278.   
  279.   /*
  280.    * $Log:    ntp_sock.c,v $
  281. +  * Revision 3.4.1.1  89/03/22  18:31:20  louie
  282. +  * patch3: Use new RCS headers.
  283. +  * 
  284.    * Revision 3.4  89/03/17  18:37:09  louie
  285.    * Latest test release.
  286.    * 
  287.  
  288. Index: ntpd.c
  289. Prereq: 3.4.1.2
  290. *** ntpd.c.old    Wed Mar 22 18:35:57 1989
  291. --- ntpd.c    Wed Mar 22 18:35:59 1989
  292. ***************
  293. *** 1,9 ****
  294.   #ifndef    lint
  295. ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntpd.c,v 3.4.1.2 89/03/22 18:03:17 louie Exp $";
  296.   #endif    lint
  297.   
  298.   /*
  299.    *  $Log:    ntpd.c,v $
  300.    * Revision 3.4.1.2  89/03/22  18:03:17  louie
  301.    * The peer->refid field was being htonl()'ed when it was already in network
  302.    * byte order.
  303. --- 1,12 ----
  304.   #ifndef    lint
  305. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntpd.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:41 $";
  306.   #endif    lint
  307.   
  308.   /*
  309.    *  $Log:    ntpd.c,v $
  310. +  * Revision 3.4.1.3  89/03/22  18:29:41  louie
  311. +  * patch3: Use new RCS headers.
  312. +  * 
  313.    * Revision 3.4.1.2  89/03/22  18:03:17  louie
  314.    * The peer->refid field was being htonl()'ed when it was already in network
  315.    * byte order.
  316. ***************
  317. *** 235,246 ****
  318.           setlogmask(LOG_UPTO(LOG_INFO));
  319.   #endif    /* LOG_DAEMON */
  320.   
  321. !     syslog(LOG_NOTICE, "%s version $Revision: 3.4.1.2 $", prog_name);
  322.       syslog(LOG_NOTICE, "patchlevel %d", PATCHLEVEL);
  323.   
  324.   #ifdef    DEBUG
  325.       if (debug)
  326. !         printf("%s version $Revision: 3.4.1.2 $ patchlevel %d\n",
  327.                  prog_name, PATCHLEVEL);
  328.   #endif
  329.       (void) setpriority(PRIO_PROCESS, 0, -10);
  330. --- 238,249 ----
  331.           setlogmask(LOG_UPTO(LOG_INFO));
  332.   #endif    /* LOG_DAEMON */
  333.   
  334. !     syslog(LOG_NOTICE, "%s version $Revision: 3.4.1.3 $", prog_name);
  335.       syslog(LOG_NOTICE, "patchlevel %d", PATCHLEVEL);
  336.   
  337.   #ifdef    DEBUG
  338.       if (debug)
  339. !         printf("%s version $Revision: 3.4.1.3 $ patchlevel %d\n",
  340.                  prog_name, PATCHLEVEL);
  341.   #endif
  342.       (void) setpriority(PRIO_PROCESS, 0, -10);
  343.  
  344. Index: ntpdc.c
  345. Prereq: 3.4.1.2
  346. *** ntpdc.c.old    Wed Mar 22 18:36:03 1989
  347. --- ntpdc.c    Wed Mar 22 18:36:04 1989
  348. ***************
  349. *** 1,9 ****
  350.   #ifndef    lint
  351. ! static char *RCSid = "$Header: /usr/users/louie/ntp/RCS/ntpdc.c,v 3.4.1.2 89/03/22 18:04:18 louie Exp $";
  352.   #endif
  353.   
  354.   /*
  355.    * $Log:    ntpdc.c,v $
  356.    * Revision 3.4.1.2  89/03/22  18:04:18  louie
  357.    * Display dispersion in milliseconds.  The peer->refid field was being ntohl()'ed
  358.    * when it should have stayed in network byte order.
  359. --- 1,12 ----
  360.   #ifndef    lint
  361. ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntpdc.c,v $ $Revision: 3.4.1.3 $ $Date: 89/03/22 18:29:53 $";
  362.   #endif
  363.   
  364.   /*
  365.    * $Log:    ntpdc.c,v $
  366. +  * Revision 3.4.1.3  89/03/22  18:29:53  louie
  367. +  * patch3: Use new RCS headers.
  368. +  * 
  369.    * Revision 3.4.1.2  89/03/22  18:04:18  louie
  370.    * Display dispersion in milliseconds.  The peer->refid field was being ntohl()'ed
  371.    * when it should have stayed in network byte order.
  372.  
  373. Index: ntpsubs.c
  374. Prereq: 3.4
  375. *** ntpsubs.c.old    Wed Mar 22 18:36:07 1989
  376. --- ntpsubs.c    Wed Mar 22 18:36:08 1989
  377. ***************
  378. *** 1,9 ****
  379.   #ifndef    lint
  380. ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/ntpsubs.c,v 3.4 89/03/17 18:37:18 louie Exp $";
  381.   #endif    lint
  382.   
  383.   /*
  384.    *  $Log:    ntpsubs.c,v $
  385.    * Revision 3.4  89/03/17  18:37:18  louie
  386.    * Latest test release.
  387.    * 
  388. --- 1,12 ----
  389.   #ifndef    lint
  390. ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntpsubs.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:19 $";
  391.   #endif    lint
  392.   
  393.   /*
  394.    *  $Log:    ntpsubs.c,v $
  395. +  * Revision 3.4.1.1  89/03/22  18:32:19  louie
  396. +  * patch3: Use new RCS headers.
  397. +  * 
  398.    * Revision 3.4  89/03/17  18:37:18  louie
  399.    * Latest test release.
  400.    * 
  401.  
  402. Index: stat.pl
  403. Prereq: 3.4.1.1
  404. *** stat.pl.old    Wed Mar 22 18:36:11 1989
  405. --- stat.pl    Wed Mar 22 18:36:12 1989
  406. ***************
  407. *** 1,4 ****
  408. --- 1,5 ----
  409.   #!/usr/bin/perl  
  410. + # $Source: /usr/users/louie/ntp/RCS/stat.pl,v $ $Revision: 3.4.1.2 $ $Date: 89/03/22 18:32:28 $
  411.   #
  412.   #  Make plots from ntpd syslog messages.  Invoked as:
  413.   #
  414. ***************
  415. *** 191,197 ****
  416.       unlink "stats.clk";
  417.   }
  418.   
  419. ! ;# $Header: /usr/users/louie/ntp/RCS/stat.pl,v 3.4.1.1 89/03/20 00:14:56 louie Exp $
  420.   
  421.   ;# Process single-character switches with switch clustering.  Pass one argument
  422.   ;# which is a string containing all switches that take an argument.  For each
  423. --- 192,198 ----
  424.       unlink "stats.clk";
  425.   }
  426.   
  427. ! ;# $Header: /usr/users/louie/ntp/RCS/stat.pl,v 3.4.1.2 89/03/22 18:32:28 louie Exp Locker: louie $
  428.   
  429.   ;# Process single-character switches with switch clustering.  Pass one argument
  430.   ;# which is a string containing all switches that take an argument.  For each
  431.  
  432. Index: test.c
  433. Prereq: 3.4
  434. *** test.c.old    Wed Mar 22 18:36:15 1989
  435. --- test.c    Wed Mar 22 18:36:15 1989
  436. ***************
  437. *** 1,9 ****
  438.   #ifndef    lint
  439. ! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/test.c,v 3.4 89/03/17 18:37:32 louie Exp $";
  440.   #endif
  441.   
  442.   /*
  443.    * $Log:    test.c,v $
  444.    * Revision 3.4  89/03/17  18:37:32  louie
  445.    * Latest test release.
  446.    * 
  447. --- 1,12 ----
  448.   #ifndef    lint
  449. ! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/test.c,v $ $Revision: 3.4.1.1 $ $Date: 89/03/22 18:32:26 $";
  450.   #endif
  451.   
  452.   /*
  453.    * $Log:    test.c,v $
  454. +  * Revision 3.4.1.1  89/03/22  18:32:26  louie
  455. +  * patch3: Use new RCS headers.
  456. +  * 
  457.    * Revision 3.4  89/03/17  18:37:32  louie
  458.    * Latest test release.
  459.    * 
  460.